package top.jiangqiang.qianyi.common.id;

import org.dromara.hutool.core.data.id.IdUtil;

class DefaultIDGenerator implements IDGenerator {
    private static final IDGenerator singleton = new DefaultIDGenerator();

    public static IDGenerator getInstance() {
        return singleton;
    }

    @Override
    public String nextUUID() {
        return IdUtil.simpleUUID();
    }

    @Override
    public long nextId() {
        return IdUtil.getSeataSnowflakeNextId();
    }

}
